import request from "@/utils/request";

//公告列表
export function get_notice() {
  return request({
    url: "/COMMODITY/OBTAIN_ANNOUNCEMENT",
    method: "get",
  });
}

//新增公告
export function add_notice(data) {
  return request({
    url: "/COMMODITY/ANNOUNCEMENT",
    method: "post",
    data,
  });
}

//删除公告
export function del_notice(data) {
  console.log(data, "api");
  return request({
    url: "/COMMODITY/DELECT_ANNOUNCEMENT",
    method: "post",
    data,
  });
}
